<template>
  <NavBar></NavBar>
  <router-view/>
</template>

<script>
  import NavBar from "@/components/NavBar.vue";
  import "bootstrap/dist/css/bootstrap.min.css";
  import "bootstrap/dist/js/bootstrap"
  import $ from "jquery"

  export default {
    components:{
      NavBar
    },

    setup(){
      $.ajax({
        url: "http://localhost:3029/user/account/token/",
        type: "post",
        data: {
          username: "zs",
          password: "123"
        },
        success(resp){
          console.log(resp);
        },
        error(resp){
          console.log(resp)
        }
      });
    //   $.ajax({
    //     url: "http://localhost:3029/user/account/info/",
    //     type: "get",
    //     headers: {
    //       Authorization: "Bearer "+"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiMDQ1MGJkODc1ZmU0YjljOWVhZDQ4ZTI5MjI4MzVhYyIsInN1YiI6IjEiLCJpc3MiOiJzZyIsImlhdCI6MTY3Njc3MTgyMCwiZXhwIjoxNjc3OTgxNDIwfQ.pt6dGidUREPUHJnUHLQjAN1qyp4zoRLsBEuoffMA8sM",
    //     },
    //     success(resp){
    //       console.log(resp);
    //     },
    //     error(resp){
    //       console.log(resp)
    //     }
    //   });
    //   $.ajax({
    //   url: "http://127.0.0.1:3029/user/account/register/",
    //   type: "post",
    //   data: {
    //     username: "lhr",
    //     password: "plhr",
    //     confirmedPassword: "plhr",
    //   },
    //   success(resp) {
    //     console.log(resp);
    //   },
    //   error(resp) {
    //     console.log(resp);
    //   }
    // })
   
    }
  }
</script>
<style>
body{
  background-image: url("./assets/images/background.png");
  background-size: cover;
}
</style>
